]> dgit.raspbian.org Git - opencc.git/log
opencc.git
3 months agoFix two out-of-bounds read issues when handling truncated UTF-8 input (#1005)
frankslin [Tue, 13 Jan 2026 00:51:38 +0000 (16:51 -0800)]
Fix two out-of-bounds read issues when handling truncated UTF-8 input (#1005)

Two independent out-of-bounds read issues were identified in OpenCC's UTF-8
processing logic when handling malformed or truncated UTF-8 sequences.

1) MaxMatchSegmentation:
   NextCharLength() could return a value larger than the remaining input size.
   The previous logic subtracted this value from a size_t length counter,
   potentially causing underflow and subsequent out-of-bounds reads.

2) Conversion:
   Similar length handling could allow reads past the end of the input buffer
   during dictionary matching, potentially propagating unintended bytes to the
   conversion output.

This patch fixes both issues by:
- Explicitly tracking the end of the input buffer
- Recomputing remaining length on each iteration
- Clamping matched character and key lengths to the remaining buffer size
- Preventing reads past the null terminator

The changes preserve existing behavior for valid UTF-8 input and add test
coverage for truncated UTF-8 sequences.

These issues may have security implications when processing untrusted input
and are classified as heap out-of-bounds reads (CWE-125).

Co-authored-by: Claude <noreply@anthropic.com>
Gbp-Pq: Name 0001-Fix-two-out-of-bounds-read-issues-when-handling-trun.patch

3 months agoDisable build in setup.py
Shengjing Zhu [Fri, 2 Aug 2024 09:11:08 +0000 (17:11 +0800)]
Disable build in setup.py

Gbp-Pq: Name 0005-Disable-build-in-setup.py.patch

3 months agoUse system googletest
Shengjing Zhu [Sun, 28 Jul 2024 23:44:27 +0000 (19:44 -0400)]
Use system googletest

Forwarded: not-needed
Last-Update: 2024-07-28

Gbp-Pq: Name 0004-Use-system-googletest.patch

3 months agoDon't fetch remote images when reading docs on disk
Gunnar Hjalmarsson [Sun, 28 Jul 2024 23:42:55 +0000 (19:42 -0400)]
Don't fetch remote images when reading docs on disk

This fixes a privacy breach previously reported as Lintian warnings

Forwarded: not-needed
Last-Update: 2024-07-28

Gbp-Pq: Name 0003-no-remote-images-when-reading-docs-on-disk.patch

3 months agouse-cmake-install-libdir
IME Packaging Team [Mon, 9 Oct 2017 14:02:39 +0000 (22:02 +0800)]
use-cmake-install-libdir

Update 2021-09-18: Also use GNUInstallDirs.

Last-Update: 2024-07-28

Gbp-Pq: Name 0001-use-cmake-install-libdir.patch

3 months agoopencc (1.1.9+ds1-1+deb13u1) trixie; urgency=medium
Adrian Bunk [Sat, 20 Jun 2026 16:41:39 +0000 (19:41 +0300)]
opencc (1.1.9+ds1-1+deb13u1) trixie; urgency=medium

  * Non-maintainer upload.
  * CVE-2025-15536: Out-of-bounds read (Closes: #1126286)

[dgit import unpatched opencc 1.1.9+ds1-1+deb13u1]

3 months agoImport opencc_1.1.9+ds1-1+deb13u1.debian.tar.xz
Adrian Bunk [Sat, 20 Jun 2026 16:41:39 +0000 (19:41 +0300)]
Import opencc_1.1.9+ds1-1+deb13u1.debian.tar.xz

[dgit import tarball opencc 1.1.9+ds1-1+deb13u1 opencc_1.1.9+ds1-1+deb13u1.debian.tar.xz]

2 years agoImport opencc_1.1.9+ds1.orig.tar.xz
Boyuan Yang [Wed, 14 Aug 2024 16:32:59 +0000 (12:32 -0400)]
Import opencc_1.1.9+ds1.orig.tar.xz

[dgit import orig opencc_1.1.9+ds1.orig.tar.xz]